<div class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="/">Porschev - Nodejs + Express + Ejs + MySQL + Bootstrap 示例</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">

                <% if (locals.username) { %>
                <li><a href="#">
                        <%= username %>
                    </a></li>
                <li><a href="/logout" methods="post">安全退出</a></li>
                <% } %>
            </ul>
        </div>
    </div>
</div>
